# coding=utf-8

from django.db import models

from utils.date_scraper import now


class AuthSMS(models.Model):
    phone_number = models.CharField(max_length=40)
    send_time = models.BigIntegerField(default=now)
    auth_code = models.CharField(max_length=10)
    content = models.CharField(max_length=200, blank=True)
    ip = models.CharField(max_length=16, default='0.0.0.0')

    class Meta:
        db_table = 'auth_sms'
